﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Aso.TinyTester.Core.Configuration
{
	[AttributeUsage(AttributeTargets.Class,AllowMultiple = true,Inherited = false)]
	public class LayoutProviderAttribute:Attribute
	{
		public LayoutProviderAttribute(Type t)
		{
			if(t.GetInterface("ILayoutProvider")==null)
				throw  new NotSupportedException("t should be of type ILayoutProvider");
			Provider = t;
		}

		public Type Provider { get; set; }
	}
}
